Handle from_utf8 new return type
authorDavid Davidović <geosoft.corp@gmail.com>
Wed, 24 Dec 2014 02:53:42 +0000 (03:53 +0100)
committerDavid Davidović <geosoft.corp@gmail.com>
Wed, 24 Dec 2014 03:53:03 +0000 (04:53 +0100)
commit039c523c56ebaebe8176c46430f2ffda109dd0eb
treec9af9d0d9a425934582724f0f7ea495a88c9502e
parent6820a424efaca229f07722c351c8b9b440511ff2
Handle from_utf8 new return type

As per rust-lang/rust@9b99436, the return type of from_utf8 has been
changed from Option to Result. Consequently, update code which relied on
this return type to work with Ok(...) and Err(...) instead of Some(...)
and None
src/cargo/ops/cargo_rustc/custom_build.rs
src/cargo/util/errors.rs
src/cargo/util/toml.rs